package com.rran.study.designpattern.behavioral.observer.event.spring;

import com.rran.study.designpattern.behavioral.observer.model.Rran;
import org.springframework.context.ApplicationEvent;

/**
 * @author yy
 * @Type RranEvent.java
 * @Desc
 * @date 2020/7/21 20:41
 */
public class RranEvent extends ApplicationEvent {

    private Rran rran;

    public RranEvent(Rran source) {
        super(source);
    }

    @Override
    public Rran getSource() {
        return (Rran) super.getSource();
    }

    public Rran getRran() {
        return rran;
    }

    public void setRran(Rran rran) {
        this.rran = rran;
    }
}
